package com.ruoyi.ms.mapstruct;


import com.ruoyi.ms.domain.MsOrderIncome;
import com.ruoyi.ms.domain.MsPackage;
import com.ruoyi.ms.domain.MsOrder;
import com.ruoyi.ms.dto.MsOrderResDto;
import com.ruoyi.ms.dto.MsPackageResDto;
import com.ruoyi.ms.dto.MsOrderIncomeDetailResDto;
import org.mapstruct.Mapper;

/**
 * @author chendx
 */
@Mapper(componentModel = "spring")
public interface MsPackageMap {

    /**
     * 将妙手的packge报文转换成entity
     * @param dto
     * @return
     */
    MsPackage mapPackageDtoToEntity(MsPackageResDto dto);

    /**
     * 将妙手虾皮订单收入明细报文转换成entity
     *
     * @param msOrderIncomeDetailResDto
     * @return
     */
    MsOrderIncome mapOrderIncomeDetailDtoToEntity(MsOrderIncomeDetailResDto msOrderIncomeDetailResDto);

    /**
     * 将妙手虾皮订单报文转换成entity
     * @param msOrderResDto
     * @return
     */
    MsOrder mapOrderDtoToEntity(MsOrderResDto msOrderResDto);
}
